Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / NumericUpDown<T> Class / FormatString Property
Example


FormatString Property
Gets or sets the format used for the string representation of this numeric Updown value.
Syntax
'Declaration
 
Public Property FormatString As String
 
'Usage
 
Dim instance As NumericUpDown(Of T)
Dim value As String
 
instance.FormatString = value
 
value = instance.FormatString
Remarks

Standard numeric formats can be used, like C2 for currency with 2 decimal places, N for numbers, P for percent, etc. A reference for said formats can be found at the following link: https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings

The default value is string.Empty.

Example

The following code would display this control:

<xctk:LongUpDown Value="12125"
                 FormatString="C2"
                 BorderBrush="Black"
                 BorderThickness="2"
                 CornerRadius="8"
                 HorizontalOptions="Center"/>
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also